#include"list1.cpp"
Complex::Complex(float r, float i)
{
	real = r;
	imag = i;
}
void Complex::print()
{
	cout << real;
	if (imag != 0)
	{
		if (imag >0 )
			cout << "+";
		cout << imag;
	}
	cout << endl;
}
Complex Complex::operator + (const Complex & a)
{
	Complex temp;
	temp.real = real + a.real;
	temp.imag = imag + a.imag;
	return temp;
}
Complex Complex::operator+(float f)
{
	return Complex(real + f, imag + f);
}
Complex Complex::operator++()
{
	real++;
	imag++;
	return *this;
}